import Http from '../../ajax/Http';
const service = 'api/user';
class UserInfoController{
    getList(params){
        return Http.post(service,'page',params)
    }
    resetPassword(params){
        return Http.post(service,'reset-password',params)
    }
    changeStatus(params){
        return Http.post(service,'change-status',params)
    }
    changePassword(params){
        return Http.post(service,'change-password',params)
    }
    getUserInfo(userName){
        return Http.get(service,'get-user-info-by-username/'+userName)
    }
    updateSubmit(params){
        return Http.post(service,'update-userinfo',params)
    }
    createdSubmit(params){
        return Http.post(service,'created-new-user',params)
    }
}
export default new UserInfoController();